<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<form name="addkind" id="addkind" action="<%=request.getContextPath() %>/kind/save.html" method="post">
<div class="title" id="title">
	<div class="text">增加分类</div>
	<div class="close" id="cover_close" title="点击关闭">关闭</div>
	<div class="clear"></div>
</div>
<div class="content">
	<ul>
		<li><label for="name">分类名称：</label><span id="name_error" class="error"></span></li>
		<li><input id="name" name="name" type="text" maxlength="16" class="input250"/></li>
		<li><label for="">上级分类：</label><span id="parentid_error" class="error"></span></li>
		<li>
			<select name="parentid" class="select250">
				<option value="0">无上级分类</option>
				<c:forEach var="kind" items="${kinds}">
					<option value="${kind.id}">${kind.name }</option>
				</c:forEach>
		</select><span class="small13"> * 无上级分类则添加一级分类</span>
		</li>
		<li><label>分类排序：</label><span id="sort_error" class="error"></span></li>
		<li><input id="sort" name="sort" type="text" maxlength="16" class="input250"/><span class="small13"> * 填写数字</span></li>
		<li><input type="submit" value="添加" class="btn"/></li>
	</ul>
</div>
</form>